﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class FeedBack
    {
        DAL.FeedBack dalfeedback = new DAL.FeedBack();

        #region 根据FId获取反馈信息
        /// <summary>
        /// 根据LId获取反馈信息
        /// </summary>
        /// <param name="lid"></param>
        /// <returns></returns>
        public MODEL.FeedBack getModelByFid(int fid)
        {
            return dalfeedback.getModelByFid(fid);
        }
        #endregion

        #region 根据FId号执行软删除
        /// <summary>
        /// 根据FId号执行软删除
        /// </summary>
        /// <param name="lid"></param>
        public bool softDelByLId(int fid)
        {
            return dalfeedback.softDelByFId(fid);
        }
        #endregion

        #region 根据用户UserId反馈信息
        /// <summary>
        /// 反馈信息
        /// </summary>
        /// <returns></returns>
        public bool feedBack(int userid, string message)
        {
            return dalfeedback.feedBack(userid, message);
        }
        #endregion

        #region 得到分页的反馈信息
        /// <summary>
        /// 得到分页的反馈信息
        /// </summary>
        /// <returns></returns>
        public List<MODEL.FeedBack> getAllFB(int pagenum)
        {
            return dalfeedback.getAllFB(pagenum);
        }
        #endregion

        #region 得到总页数
        /// <summary>
        /// 得到总页数
        /// </summary>
        /// <returns></returns>
        public int getPage()
        {
            return dalfeedback.getPage();
        }
        #endregion
    }
}
